package com.inno.auth.domain.convert;

import com.inno.auth.domain.entity.FeedbackBO;
import com.inno.auth.infra.basic.entity.PlannerFeedbackInfo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author sean
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface FeedbackConverter {
    FeedbackConverter INSTANCE = Mappers.getMapper(FeedbackConverter.class);

    PlannerFeedbackInfo convertBOToEntity(FeedbackBO feedbackBO);

    List<FeedbackBO> convertEntityListToBOList(List<PlannerFeedbackInfo> entityResult);
}
